/*
 * Description: 在线消息 - 群文件 控制器
 * Author: wangyifei
 * DateCreated: 2024-06-07 15:29
 */

import { type IRes, messageHttp } from '@/utils/request';

// 新增 在线消息 - 群文件
export interface GroupFileParam {
	fileExt?: string;
	fileName?: string;
	filePath?: string;
	fileSize?: number;
	fileTxt?: string;
	fileUrl?: string;
	groupId?: number;
	msgId?: number;
	title?: string;
}
export interface GroupFileRes extends GroupFileParam {
	id: number;
}
export const insertGroupFile = (data: GroupFileParam) =>
	messageHttp.post<IRes<GroupFileRes>>({
		url: '/chatting-group-files/',
		data
	});
